#########################
## GENERATE EXECUTABLE ##
#########################

add_executable(printer "printer.cpp")
target_link_libraries(printer compilation)

add_executable(graph "graph.cpp")
target_link_libraries(graph compilation)


###############
## SET TESTS ##
###############

add_test(printer_essai1 "${EXECUTABLE_OUTPUT_PATH}/printer"
  "${CMAKE_SOURCE_DIR}/test/essai1.c")
add_test(printer_essai2 "${EXECUTABLE_OUTPUT_PATH}/printer"
  "${CMAKE_SOURCE_DIR}/test/essai2.c")
add_test(printer_essai3 "${EXECUTABLE_OUTPUT_PATH}/printer"
  "${CMAKE_SOURCE_DIR}/test/essai3.c")

add_test(ssa_essai1 "${EXECUTABLE_OUTPUT_PATH}/ssa"
  "${CMAKE_SOURCE_DIR}/test/essai1.c")
add_test(ssa_essai2 "${EXECUTABLE_OUTPUT_PATH}/ssa"
  "${CMAKE_SOURCE_DIR}/test/essai2.c")
add_test(ssa_essai3 "${EXECUTABLE_OUTPUT_PATH}/ssa"
  "${CMAKE_SOURCE_DIR}/test/essai3.c")
